Skip to content

Fix return type of ElementTree.iterparse()#14213

Merged
JelleZijlstra merged 14 commits intopython:mainfrom
srittau:etree-iterparse
May 4, 2026
Merged

Fix return type of ElementTree.iterparse()#14213
JelleZijlstra merged 14 commits intopython:mainfrom
srittau:etree-iterparse

Conversation

@srittau
Copy link
Copy Markdown
Collaborator

@srittau srittau commented Jun 2, 2025

The type of the second element of the tuple returned from
the iterator depends on the event.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@srittau
Copy link
Copy Markdown
Collaborator Author

srittau commented Dec 2, 2025

Failures are unrelated.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 3, 2026

Diff from mypy_primer, showing the effect of this PR on open source code:

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/computation/ops.py:328: error: Need type annotation for "_binary_ops_dict" (hint: "_binary_ops_dict: dict[<type>, <type>] = ...")  [var-annotated]

@JelleZijlstra JelleZijlstra merged commit 38ad421 into python:main May 4, 2026
54 checks passed
@srittau srittau deleted the etree-iterparse branch May 4, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants